package com.wind.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.wind.entity.Article;
import com.wind.dao.ArticleMapper;
import com.wind.service.IArticleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 文章表 服务实现类
 * </p>
 *
 * @author xiao
 * @since 2021-05-19
 */
@Service
public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> implements IArticleService {

    @Override
    public Page<Article> query(Page page, String title) {
        return page.setRecords(baseMapper.select(page,title));
    }
}
